package com.chixing.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.chixing.commons.ServerResponse;
import com.chixing.pojo.Myorder;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaotao
 * @since 2022-10-12
 */
public interface IMyorderService  {
    public ServerResponse saveMyOrder(Myorder myorder);
    public ServerResponse updateMyorder(Myorder myorder);
    public ServerResponse getById(Integer myorderId);
    public List<Myorder> getAllOrderById(Integer userId);
    public Myorder selectById(Integer myorderId);

    /* 我的订单页 */
    //全部订单：不查 4
    public ServerResponse getAll(Integer userId);

    //状态修改
    public int updateOrderStatus(String orderNum);
}
